// import Url from '@/service/url'
import time from '@/utils/helpers/timeLite'

export default {
  makeEvent () {
    return {id: '', name: '', state: 0, url: '', memo: ''}
  },
  toDateTime (seconds) {
    return new Date().setTime(1000 * seconds)
  },
  getTimeText (seconds) {
    let dt = this.toDateTime(seconds)
    return time.format(dt, 'YYYY-MM-DD hh:mm:ss')
  }
}
